<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" href="./css/prettify.css" />
<script type="text/javascript" src="./js/prettify.js"></script>
</head>
<body onload="prettyPrint()">
<pre class="prettyprint linenums">
<?php
$wrapping;
$n1;
$n2;
$wrap;
$v1;
$v2;

isset($_GET['wrapping']) ? $wrapping=$_GET['wrapping'] : $wrapping=960;
isset($_GET['n1'])       ? $n1=$_GET['n1']             : $n1=200;
isset($_GET['n2'])       ? $n2=$_GET['n2']             : $n2=200;

isset($_GET['wrap'])     ? $wrap=$_GET['wrap']         : $wrap='';
isset($_GET['v1'])       ? $v1=$_GET['v1']             : $v1='';
isset($_GET['v2'])       ? $v2=$_GET['v2']             : $v2='';

if (isset($_GET['css'])) :
//header('Content-Disposition: attachment; filename=' . $_GET['css'] .'.css');
?>
<?php
	switch ($_GET['css']) :
		case 'fl':
			echo   "".'/* Fixed L Mode - Tuding Layout System v2.0 - copyright(c)bubujie.net */';
			printf("\n".'/* n1=%spx; n2=%spx; wrapping=%spx;%s%s%s */',
				$n1, $n2, $wrapping, 
				$v1   ? ' v1='.$v1.'px;'     : '',
				$v2   ? ' v2='.$v2.'px;'     : '',
				$wrap ? ' wrap='.$wrap.'px;' : ''
			);
			echo   "\n";
			include("./tpl/fixed_L.tpl");
		break;

		case 'ft7':
			echo '/* Fixed T&7 Mode - Tuding Layout System v2.0 - copyright(c)bubujie.net */';
			printf("\n".'/* n1=%spx; n2=%spx; wrapping=%spx;%s%s%s */',
				$n1, $n2, $wrapping, 
				$v1   ? ' v1='.$v1.'px;'     : '',
				$v2   ? ' v2='.$v2.'px;'     : '',
				$wrap ? ' wrap='.$wrap.'px;' : ''
			);
			echo   "\n";
			include("./tpl/fixed_T7.tpl");
		break;

		case 'h':
			echo '/* Hybrid Mode - Tuding Layout System v2.0 - copyright(c)bubujie.net */';
			printf("\n".'/* n1=%spx; n2=%spx; wrapping=%s;%s%s%s */',
				$n1, $n2, $wrapping, 
				$v1   ? ' v1='.$v1.'px;'     : '',
				$v2   ? ' v2='.$v2.'px;'     : '',
				$wrap ? ' wrap='.$wrap       : ''
			);
			echo   "\n";
			include("./tpl/hybrid.tpl");
		break;

		case 'll':
			echo '/* Liquid L Mode - Tuding Layout System v2.0 - copyright(c)bubujie.net */';
			printf("\n".'/* n1=%spx; n2=%spx; wrapping=%spx;%s%s%s */',
				$n1, $n2, $wrapping, 
				$v1   ? ' v1='.$v1.'px;'     : '',
				$v2   ? ' v2='.$v2.'px;'     : '',
				$wrap ? ' wrap='.$wrap       : ''
			);
			echo   "\n";
			include("./tpl/fixed_L.tpl");
		break;

		case 'lt7':
			echo '/* Liquid T&7 Mode - Tuding Layout System v2.0 - copyright(c)bubujie.net */';
			printf("\n".'/* n1=%spx; n2=%spx; wrapping=%spx;%s%s%s */',
				$n1, $n2, $wrapping, 
				$v1   ? ' v1='.$v1.'px;'     : '',
				$v2   ? ' v2='.$v2.'px;'     : '',
				$wrap ? ' wrap='.$wrap       : ''
			);
			echo   "\n";
			include("./tpl/fixed_T7.tpl");
		break;

		default:
			echo   "".'/* 非法的请求! */';;
		break;
	endswitch;
?>
<?php
/*
	switch ($_GET['inner']) {
		case 'fl':
			include("./tpl/inner-fl.css");
		break;

		case 'ft7':
			include("./tpl/inner-ft7.css");
		break;

		case 'h':
			include("./tpl/inner-h.css");
		break;

		case 'll':
			include("./tpl/inner-fl.css");
		break;

		case 'lt7':
			include("./tpl/inner-ft7.css");
		break;

		default:
			echo   "".'非法的请求!';;
		break;
	}
*/
	echo "\n";
	include("./width.css");
	echo "\n";
	include("./horizontal.css");

	switch ($_GET['css']) :
		case 'fl':
			//echo "\n".'/* ######### ######### ######### END::Fixed L ######### ######### ######### */';
			echo "\n";
		break;

		case 'ft7':
			//echo "\n".'/* ######### ######### ######### END::Fixed T&7 ######### ######### ######### */';
			echo "\n";
		break;

		case 'h':
			//echo "\n".'/* ######### ######### ######### END::Hybrid ######### ######### ######### */';
			echo "\n";
		break;

		case 'll':
			//echo "\n".'/* ######### ######### ######### END::Liquid L ######### ######### ######### */';
			echo "\n";
		break;

		case 'lt7':
			//echo "\n".'/* ######### ######### ######### END::Liquid T&7 ######### ######### ######### */';
			echo "\n";
		break;

		default:
			echo   "".'';
		break;
	endswitch;
?>
<?php
else :
	echo "无所求！";
endif;
?>
</pre>
</body>
</html>